﻿using JTLeigh.Commerce.Spencer.Features.ProductFeedback.Common.Entities;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace JTLeigh.Commerce.Spencer.Features.ProductFeedback.Common.UnitTests.Entities
{

	/// <summary>
	/// Unit tests for the <see cref="ProductFeedbackMetadata"/> class.
	/// </summary>
	[TestClass]
	public class ProductFeedbackMetadataFixture
	{

		#region Methods

		#region Constructors

		/// <summary>
		/// Ensures the default constructor initializes the rating, recommendation, and review
		/// attribute collections.
		/// </summary>
		[TestMethod]
		public void TestConstructor()
		{
			ProductFeedbackMetadata metadata;

			metadata = new ProductFeedbackMetadata();
			Assert.IsNotNull(metadata.RatingAttributes);
			Assert.AreEqual(0, metadata.RatingAttributes.Count);
			Assert.IsNotNull(metadata.RecommendationAttributes);
			Assert.AreEqual(0, metadata.RecommendationAttributes.Count);
			Assert.IsNotNull(metadata.ReviewAttributes);
			Assert.AreEqual(0, metadata.ReviewAttributes.Count);
		}

		#endregion // Constructors

		#endregion // Methods

	}

}
